<% data = [
  { product: "Emerald Silk Gown", price: "$875.00", sku: 124689, qty: 140, sales: "$122,500.00" },
  { product: "Mauve Cashmere Scarf", price: "$230.00", sku: 124533, qty: 83, sales: "$19,090.00" },
  { product: "Navy Merino Wool Blazer with khaki chinos and yellow belt", price: "$445.00", sku: 124518, qty: 32, sales: "$14,240.00" },
] %>

<%= polaris_card do |card| %>
  <% card.with_section do %>
    <%= polaris_filters do |filters| %>
      <% filters.with_query(
        name: :query,
        placeholder: "Filter items",
      ) %>
      <% filters.with_item(label: "Availability", width: "150px") do %>
        <%= polaris_choice_list(title_hidden: true) do |choice| %>
          <% choice.with_checkbox(label: "Online Store", value: "online_store") %>
          <% choice.with_checkbox(label: "Point of Sale", value: "point_of_sale") %>
          <% choice.with_checkbox(label: "Buy Button", value: "buy_button") %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>

  <% card.with_section(unstyled: true) do %>
    <%= polaris_data_table(data, totals_in_header: true) do |table| %>
      <% table.with_column("Product", total: "Totals") do |row| %>
        <%= row[:product] %>
      <% end %>
      <% table.with_column("Price", numeric: true) do |row| %>
        <%= row[:price] %>
      <% end %>
      <% table.with_column("SKU Number", numeric: true) do |row| %>
        <%= row[:sku] %>
      <% end %>
      <% table.with_column("Net quantity", numeric: true, total: 255) do |row| %>
        <%= row[:qty] %>
      <% end %>
      <% table.with_column("Net sales", numeric: true, total: "$155,830.00") do |row| %>
        <%= row[:sales] %>
      <% end %>
    <% end %>
  <% end %>
<% end %>
